package com.chagee.channel.common.exception;

import com.chagee.base.exception.BizExpCode;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author yhl
 * @version 1.0
 * @className BizErrorCode
 * @description 异常码
 * @date 2023/12/19 17:08:20
 */
@AllArgsConstructor
@Getter
public enum BizErrorCode implements BizExpCode {
	//系统异常
	SUCCESS("0", "处理成功"),
	HTTP_SUCCESS("0", "处理成功"),
	REQUEST_VALID_FAILED("99997", "请求参数校验失败"),
	PARAMETER_IS_NULL("99998", "入参为空"),
	FAIL("99999", "处理失败"),
	SEND_MQ_FAIL("108801040004", "发送MQ消息失败"),
	OCR_FAIL("108801040005", "识别失败"),
	FILE_TOO_SMALL("108801040006", "不支持空文件上传"),
	TXT_FAIL("108801040007","仅Word文档和PPT文档支持转换为TXT格式"),
	FILE_FORMAT("108801040009","文件格式与文件内容不匹配"),
	FILE_UPLOAD_FAIL("108801040010","文件格式与文件内容不匹配"),
	DOCUMENT_CONVERSION_FAIL("108801040008","文档转换失败")

	;


	private String errorCode;
	private String errorMsg;
}
